﻿@model ShivamEMR.Model.Domain.PatientDomain.Patient

@{
    ViewBag.Title = "PDashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>PDashboard</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<br />

 <script type="text/javascript">
     $(document).ready(function () {
         $("#tabs").tabs();
     });    
	</script>

<p>
 @Html.ActionLink( "Appointment", "New","Appointment", new { area="CRM", id=Model.ID },null)
 @Html.ActionLink("Admission", "New", "Admission", new { id = Model.ID },null)
 @Html.ActionLink("Treatment", "Appointment", new { id=Model.ID })
 @Html.ActionLink("Diagnostics", "Diagnostics", new { id = Model.ID })
@* @Html.ActionLink("Representatives", "Representatives", new { id = Model.ID })
 @Html.ActionLink("Insurances", "Insurances", new { id = Model.ID })*@
 </p>



@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
 <div id="tabs">
	    <ul>
		    <li><a href="#tabs-1">Patient Details </a></li>
		    <li><a href="#tabs-2">Appointments</a></li>
		    <li><a href="#tabs-3">Admissions</a></li>
               <li><a href="#tabs-4">Treatment</a></li>
		    <li><a href="#tabs-5">Diagnosis</a></li>		 
	    </ul>
	    <div id="tabs-1"> 
     <h3>Personal Details</h3> 
        <table width="100%" cellpadding="4" cellspacing="4">

        <tr> 
        <td>

        <div class="editor-label">
            Name
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.FullName)           
        </div>
</td>
        
        </tr>

		<tr>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegistrationDate)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.RegistrationDate)           
        </div>
</td>
</tr>

<tr>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegisteredInBranch)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.RegisteredInBranch.Name)           
        </div>
</td>
    </tr><tr>
	@*<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.Code)           
        </div>
</td>*@
    </tr>
    
   @* <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.Title)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.FirstName)           
        </div>
</td>
    </tr>
    <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.MiddleName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.MiddleName)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.LastName)           
        </div>
</td>
    </tr>
    
    <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.AltFirstName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.AltFirstName)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.AltMiddleName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.AltMiddleName)           
        </div>
</td>
    </tr>*@
    
    <tr>
	     </tr></table></div>
	    <div id="tabs-2"> 
        <h3>Contacts</h3> 
        <table width="100%" cellpadding="4" cellspacing="4">
	   <tr>
   <td>

        <div class="editor-label">
            @Html.LabelFor(model => model.AltLastName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.AltLastName)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfBirth)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.DateOfBirth)           
        </div>
</td>
    </tr><tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Barcode)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.Barcode)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.SexID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.SexID)           
        </div>
</td>
    </tr><tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaritalSatusID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.MaritalSatusID)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.PictureID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.PictureID)           
        </div>
</td>
    </tr><tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonAccountID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.PersonAccountID)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonStatusID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.PersonStatusID)           
        </div>
</td>
    </tr><tr>
	     </tr></table></div>     

         	    <div id="tabs-3"> 
                </div>

                  <div id="tabs-4"> 
                </div>

                  <div id="tabs-5"> 
                </div>

              

   </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
<script>
$(function () {
    $("div.metro-pivot").metroPivot();
});
</script>
